//
//  XMRenewVersionView.m
//  XunMi
//
//  Created by MacBook on 2024/4/9.
//  Copyright © 2024 TieZhu. All rights reserved.
//

#import "XMRenewVersionView.h"

@interface XMRenewVersionView ()
@property (weak, nonatomic) IBOutlet UILabel *versionLa;



@end

@implementation XMRenewVersionView

- (void)awakeFromNib {
    [super awakeFromNib];
    self.versionLa.text = kStringFormat(@"v%@", [XMUtil bundleShortVersionString]);
}

- (IBAction)update:(UIButton *)sender {
    if (self.updateBlock) {
        self.updateBlock();
    }
}

- (IBAction)close:(UIButton *)sender {
    if (self.closeBlock) {
        self.closeBlock();
    }
}


@end
